﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Edit.aspx.cs" Inherits="SRS_CP.Edit" %>

<asp:Content ID="headContent" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="SRS_PageLayout">

    <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true">
        <DataControls>
            <asp:DataControlReference ControlID="FormView1" />
        </DataControls>
    </asp:DynamicDataManager>
               
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:Table ID="Table1" runat="server" Width="650px"><asp:TableRow><asp:TableCell>
            <asp:DynamicValidator runat="server" ID="DetailsViewValidator" ControlToValidate="FormView1" Display="None" Cssclass="SRSValidator" />
            <asp:FormView runat="server" ID="FormView1" DataSourceID="DetailsDataSource" DefaultMode="Edit"
                OnItemCommand="FormView1_ItemCommand" OnItemUpdated="FormView1_ItemUpdated" RenderOuterTable="false" Visible="True">
                <EditItemTemplate>
                    <table id="detailsTable" class="SRSDetailsTable" cellpadding="6">
                        <asp:DynamicEntity ID="DynamicEntity1" runat="server" Mode="Edit" />
                        <tr class="td">
                            <td colspan="2">
                            <br />
                                <img id="Img1" runat="server" src="../../../Images/iconsets/picol/1338163718_badge_accept_32.png" alt="Update" />
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Update" Text="Update" />&nbsp;&nbsp;
                                <img id="Img2" runat="server" src="../../../Images/iconsets/picol/1338163726_badge_minus_32.png" alt="Cancel" />
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" />
                            </td>
                        </tr>
                    </table>
                </EditItemTemplate>
                <EmptyDataTemplate>
                    <div class="SRSNoItem">No such item.</div>
                </EmptyDataTemplate>
            </asp:FormView>
            <asp:EntityDataSource ID="DetailsDataSource" runat="server" EnableUpdate="true" />
            <asp:QueryExtender TargetControlID="DetailsDataSource" ID="DetailsQueryExtender" runat="server" ViewStateMode="Inherit">
                <asp:DynamicRouteExpression />
            </asp:QueryExtender>
        </asp:TableCell></asp:TableRow></asp:Table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content>

